DEF_PROJECT=../../..
include $(DEF_PROJECT)/scripts/main.mk
name=gcc
version=4.7.2
build=gcc-build
group=tools
deps=eglibc
prefix=$(DIR_TOOLS)

DL_SERV=http
DL_HOST=ftp.gnu.org
DL_PATH=gnu/$(name)/$(name)-$(version)
DL_SUFFIX=tar.bz2

CC_CFLAGS=-O2
CC_LDFLAGS=
cdefs+=AR=ar

LDFLAGS=-Wl,-rpath,$(prefix)/lib

cflags+=--host=$(CC_HOST)
cflags+=--build=$(CC_BUILD)
cflags+=--target=$(CC_TARGET)
cflags+=--with-sysroot=$(DIR_SYSROOT)
cflags+=--disable-multilib
cflags+=--disable-nls
#cflags+=--without-headers
#cflags+=--with-newlib
#cflags+=--disable-decimal-float
#cflags+=--disable-libgomp
#cflags+=--disable-libmudflap
#cflags+=--disable-libssp
cflags+=--with-mpfr=$(prefix)
cflags+=--with-gmp=$(prefix)
cflags+=--with-ppl=$(prefix)
cflags+=--with-cloog=$(prefix)
cflags+=--enable-shared
#cflags+=--disable-threads
cflags+=--enable-languages=c,c++
cflags+=--enable-__cxa_atexit
cflags+=--enable-c99
cflags+=--enable-long-long
cflags+=--enable-threads=posix

mflags=AS_FOR_TARGET=$(addsuffix -,$(CC_TARGET))as LD_FOR_TARGET=$(addsuffix -,$(CC_TARGET))ld
